-- GENERATED SPELL FOR [Erathius, King of Dirt] --


function spell0_30025(pUnit, Event) --@Shockwave,n/a--
pUnit:FullCastSpellOnTarget(55918,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30025', 4000, 1)
end

function Sorts_30025(pUnit, Event)
local choix_sorts_30025 = math.random(0, 0)
if choix_sorts_30025 == 0 then
pUnit:RegisterEvent('spell0_30025', 1, 1)
end
end

function mob30025_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30025', math.random(1500, 3000), 1)
end

function mob30025_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30025_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30025_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30025, 1, 'mob30025_Action')
RegisterUnitEvent(30025, 2, 'mob30025_Leave')
RegisterUnitEvent(30025, 3, 'mob30025_Kill')
RegisterUnitEvent(30025, 4, 'mob30025_Die')
